package cn.yeziji.forum.dao.iquery;

import cn.org.atool.fluent.mybatis.base.crud.IQuery;
import cn.yeziji.forum.entity.ForumQuestionAnswerEntity;
import cn.yeziji.forum.wrapper.ForumQuestionAnswerQuery;

/**
 * 问题与答案关联条件构造器
 *
 * @author gzkemays
 * @since 2022/11/14 7:53 PM
 */
public class QuestionAnswerQuery {
  public static IQuery<ForumQuestionAnswerEntity> findOneByAnswerId(Integer answerId) {
    return new ForumQuestionAnswerQuery().selectAll().where.answerId().eq(answerId).end();
  }
}
